package com.example.eleave.controller;


import com.example.eleave.entity.Userinfo;
import com.example.eleave.mapper.UserinfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zhouxinyu
 * @since 2021-09-07
 */
@RestController
@RequestMapping("/userinfo")
public class UserinfoController {
    @Autowired
    UserinfoMapper userinfoMapper;

    @GetMapping("/GET/user")
    public List<Userinfo> getAllUser(){
        return userinfoMapper.selectList(null);
    }

}

